/**
 * 零基础学C语言
 * 
 * version: 1st
 * author: 明日科技
 * http://www.mingrisoft.com
 */

#include <stdio.h>

int main() {
    int a;
    int *pointer;

    printf("请输入数据：\n");
    scanf("%d", &a);
    pointer = &a;
    printf("转换十六进制为：%x\n", *pointer);

    return 0;
}

/*
output:
5
*/